#ifndef logger_hpp
#define logger_hpp

#include <vector>
#include <string>
#include <allegro.h>

#define MESSAGE_CREATE_X 400
#define MESSAGE_CREATE_Y 100
#define MESSAGE_DELETE   200
#define GAP_BETWEEN_MESSAGES 12
#define MESSAGE_STEP 0.5
#define MESSAGE_COLOR 0xc6d425

class cMessage
{
    public:
        std::string t;
        float x, y;

        cMessage(std::string text);
};

class cLogger
{
    private:
        std::vector <cMessage> message;

	public:
        void addMessage(std::string text);

        void draw(BITMAP * bufor);
        void actual();

		cLogger();
		~cLogger();
};

#endif
